package com.neusoft.neuiotms.dcom.repository.problem;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.problem.ProblemRegistration;

public interface ProblemRegistrationRepository
        extends JpaRepository<ProblemRegistration, Long>, CustomizedProblemRegistrationRepository {

    ProblemRegistration findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    void deleteByWorkOrderNum(String workOrderNum);

    ProblemRegistration findByWorkOrderNum(String workOrderNum);

}
